package com.ai.module.user.mapper;

import com.ai.module.user.domain.entity.PublicTitleEntity;
import com.ai.module.user.enu.AIType;
import com.ai.module.user.domain.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PublicTitleMapper extends BaseMapper<PublicTitleEntity> {

    List<PublicTitleVo> imagePrompt();

    List<AIProductVo> aiProduct(@Param("aiType") AIType aiType);

    List<AiProductContent> findAllProduct();

    @Select("select *  from ai_product_record where business_id= #{businessId} and user_id =#{userId} order by id asc")
    IPage<AiProductContentRecordVo> productRecord(Page<AiProductContentRecordVo> aiProductContentRecordVoIPage,
                                                  @Param("businessId") String businessId
                                                  , @Param("userId") String userId
    );

    List<ImageMangeVo> imageMange();

}
